package com.ourteam.workspace.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:27 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class WorkspaceScmLog implements java.io.Serializable {

  public WorkspaceScmLog() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private long parentId;

  /** Attribute parentId Be Seted Falg */
  private boolean parentIdSetted = false;

  /** Attribute parentId is Null Falg */
  private boolean parentIdNull = false;

  /**
   * Get parentId
   *
   * @return long
   */
  public final long getParentId() {

    return parentId;
  }

  /**
   * Set parentId
   *
   * @param long
   */
  public final void setParentId(long parentId) {

    this.parentId = parentId;

    this.parentIdSetted = true;

    this.setParentIdNull(false);
  }

  /**
   * Get parentId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isParentIdSetted() {
    return this.parentIdSetted;
  }

  /** Set parentId Null */
  public final void setParentIdNull() {

    this.parentIdNull = true;
  }

  public final void setParentIdNull(boolean aNullFlag) {

    this.parentIdNull = aNullFlag;
  }

  public final boolean isParentIdNull() {

    return this.parentIdNull;
  }

  private long workspaceId;

  /** Attribute workspaceId Be Seted Falg */
  private boolean workspaceIdSetted = false;

  /** Attribute workspaceId is Null Falg */
  private boolean workspaceIdNull = false;

  /**
   * Get workspaceId
   *
   * @return long
   */
  public final long getWorkspaceId() {

    return workspaceId;
  }

  /**
   * Set workspaceId
   *
   * @param long
   */
  public final void setWorkspaceId(long workspaceId) {

    this.workspaceId = workspaceId;

    this.workspaceIdSetted = true;

    this.setWorkspaceIdNull(false);
  }

  /**
   * Get workspaceId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspaceIdSetted() {
    return this.workspaceIdSetted;
  }

  /** Set workspaceId Null */
  public final void setWorkspaceIdNull() {

    this.workspaceIdNull = true;
  }

  public final void setWorkspaceIdNull(boolean aNullFlag) {

    this.workspaceIdNull = aNullFlag;
  }

  public final boolean isWorkspaceIdNull() {

    return this.workspaceIdNull;
  }

  private long workspaceScmConfigId;

  /** Attribute workspaceScmConfigId Be Seted Falg */
  private boolean workspaceScmConfigIdSetted = false;

  /** Attribute workspaceScmConfigId is Null Falg */
  private boolean workspaceScmConfigIdNull = false;

  /**
   * Get workspaceScmConfigId
   *
   * @return long
   */
  public final long getWorkspaceScmConfigId() {

    return workspaceScmConfigId;
  }

  /**
   * Set workspaceScmConfigId
   *
   * @param long
   */
  public final void setWorkspaceScmConfigId(long workspaceScmConfigId) {

    this.workspaceScmConfigId = workspaceScmConfigId;

    this.workspaceScmConfigIdSetted = true;

    this.setWorkspaceScmConfigIdNull(false);
  }

  /**
   * Get workspaceScmConfigId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspaceScmConfigIdSetted() {
    return this.workspaceScmConfigIdSetted;
  }

  /** Set workspaceScmConfigId Null */
  public final void setWorkspaceScmConfigIdNull() {

    this.workspaceScmConfigIdNull = true;
  }

  public final void setWorkspaceScmConfigIdNull(boolean aNullFlag) {

    this.workspaceScmConfigIdNull = aNullFlag;
  }

  public final boolean isWorkspaceScmConfigIdNull() {

    return this.workspaceScmConfigIdNull;
  }

  private String revision;

  /** Attribute revision Be Seted Falg */
  private boolean revisionSetted = false;

  /** Attribute revision is Null Falg */
  private boolean revisionNull = false;

  /**
   * Get revision
   *
   * @return String
   */
  public final String getRevision() {

    if (isRevisionNull()) {
      return null;
    } else {
      return StringUtils.trim(revision);
    }
  }

  /**
   * Set revision
   *
   * @param String
   */
  public final void setRevision(String revision) {

    this.revision = StringUtils.trim(revision);

    this.revisionSetted = true;

    this.setRevisionNull(this.revision == null);
  }

  /**
   * Get revision Has Been Setted
   *
   * @return boolean
   */
  public final boolean isRevisionSetted() {
    return this.revisionSetted;
  }

  /** Set revision Null */
  public final void setRevisionNull() {

    this.revisionNull = true;
  }

  public final void setRevisionNull(boolean aNullFlag) {

    this.revisionNull = aNullFlag;
  }

  public final boolean isRevisionNull() {

    return this.revisionNull;
  }

  private String author;

  /** Attribute author Be Seted Falg */
  private boolean authorSetted = false;

  /** Attribute author is Null Falg */
  private boolean authorNull = false;

  /**
   * Get author
   *
   * @return String
   */
  public final String getAuthor() {

    if (isAuthorNull()) {
      return null;
    } else {
      return StringUtils.trim(author);
    }
  }

  /**
   * Set author
   *
   * @param String
   */
  public final void setAuthor(String author) {

    this.author = StringUtils.trim(author);

    this.authorSetted = true;

    this.setAuthorNull(this.author == null);
  }

  /**
   * Get author Has Been Setted
   *
   * @return boolean
   */
  public final boolean isAuthorSetted() {
    return this.authorSetted;
  }

  /** Set author Null */
  public final void setAuthorNull() {

    this.authorNull = true;
  }

  public final void setAuthorNull(boolean aNullFlag) {

    this.authorNull = aNullFlag;
  }

  public final boolean isAuthorNull() {

    return this.authorNull;
  }

  private java.util.Date revisionTime;

  /** Attribute revisionTime Be Seted Falg */
  private boolean revisionTimeSetted = false;

  /** Attribute revisionTime is Null Falg */
  private boolean revisionTimeNull = false;

  /**
   * Get revisionTime
   *
   * @return java.util.Date
   */
  public final java.util.Date getRevisionTime() {

    return revisionTime;
  }

  /**
   * Set revisionTime
   *
   * @param java.util.Date
   */
  public final void setRevisionTime(java.util.Date revisionTime) {

    this.revisionTime = revisionTime;

    this.revisionTimeSetted = true;

    this.setRevisionTimeNull(this.revisionTime == null);
  }

  /**
   * Get revisionTime Has Been Setted
   *
   * @return boolean
   */
  public final boolean isRevisionTimeSetted() {
    return this.revisionTimeSetted;
  }

  /** Set revisionTime Null */
  public final void setRevisionTimeNull() {

    this.revisionTimeNull = true;
  }

  public final void setRevisionTimeNull(boolean aNullFlag) {

    this.revisionTimeNull = aNullFlag;
  }

  public final boolean isRevisionTimeNull() {

    return this.revisionTimeNull;
  }

  private String comment;

  /** Attribute comment Be Seted Falg */
  private boolean commentSetted = false;

  /** Attribute comment is Null Falg */
  private boolean commentNull = false;

  /**
   * Get comment
   *
   * @return String
   */
  public final String getComment() {

    if (isCommentNull()) {
      return null;
    } else {
      return StringUtils.trim(comment);
    }
  }

  /**
   * Set comment
   *
   * @param String
   */
  public final void setComment(String comment) {

    this.comment = StringUtils.trim(comment);

    this.commentSetted = true;

    this.setCommentNull(this.comment == null);
  }

  /**
   * Get comment Has Been Setted
   *
   * @return boolean
   */
  public final boolean isCommentSetted() {
    return this.commentSetted;
  }

  /** Set comment Null */
  public final void setCommentNull() {

    this.commentNull = true;
  }

  public final void setCommentNull(boolean aNullFlag) {

    this.commentNull = aNullFlag;
  }

  public final boolean isCommentNull() {

    return this.commentNull;
  }

  private String status;

  /** Attribute status Be Seted Falg */
  private boolean statusSetted = false;

  /** Attribute status is Null Falg */
  private boolean statusNull = false;

  /**
   * Get status
   *
   * @return String
   */
  public final String getStatus() {

    if (isStatusNull()) {
      return null;
    } else {
      return StringUtils.trim(status);
    }
  }

  /**
   * Set status
   *
   * @param String
   */
  public final void setStatus(String status) {

    this.status = StringUtils.trim(status);

    this.statusSetted = true;

    this.setStatusNull(this.status == null);
  }

  /**
   * Get status Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStatusSetted() {
    return this.statusSetted;
  }

  /** Set status Null */
  public final void setStatusNull() {

    this.statusNull = true;
  }

  public final void setStatusNull(boolean aNullFlag) {

    this.statusNull = aNullFlag;
  }

  public final boolean isStatusNull() {

    return this.statusNull;
  }

  private String remarks;

  /** Attribute remarks Be Seted Falg */
  private boolean remarksSetted = false;

  /** Attribute remarks is Null Falg */
  private boolean remarksNull = false;

  /**
   * Get remarks
   *
   * @return String
   */
  public final String getRemarks() {

    if (isRemarksNull()) {
      return null;
    } else {
      return StringUtils.trim(remarks);
    }
  }

  /**
   * Set remarks
   *
   * @param String
   */
  public final void setRemarks(String remarks) {

    this.remarks = StringUtils.trim(remarks);

    this.remarksSetted = true;

    this.setRemarksNull(this.remarks == null);
  }

  /**
   * Get remarks Has Been Setted
   *
   * @return boolean
   */
  public final boolean isRemarksSetted() {
    return this.remarksSetted;
  }

  /** Set remarks Null */
  public final void setRemarksNull() {

    this.remarksNull = true;
  }

  public final void setRemarksNull(boolean aNullFlag) {

    this.remarksNull = aNullFlag;
  }

  public final boolean isRemarksNull() {

    return this.remarksNull;
  }

  private long totalLines;

  /** Attribute totalLines Be Seted Falg */
  private boolean totalLinesSetted = false;

  /** Attribute totalLines is Null Falg */
  private boolean totalLinesNull = false;

  /**
   * Get totalLines
   *
   * @return long
   */
  public final long getTotalLines() {

    return totalLines;
  }

  /**
   * Set totalLines
   *
   * @param long
   */
  public final void setTotalLines(long totalLines) {

    this.totalLines = totalLines;

    this.totalLinesSetted = true;

    this.setTotalLinesNull(false);
  }

  /**
   * Get totalLines Has Been Setted
   *
   * @return boolean
   */
  public final boolean isTotalLinesSetted() {
    return this.totalLinesSetted;
  }

  /** Set totalLines Null */
  public final void setTotalLinesNull() {

    this.totalLinesNull = true;
  }

  public final void setTotalLinesNull(boolean aNullFlag) {

    this.totalLinesNull = aNullFlag;
  }

  public final boolean isTotalLinesNull() {

    return this.totalLinesNull;
  }

  private long totalSize;

  /** Attribute totalSize Be Seted Falg */
  private boolean totalSizeSetted = false;

  /** Attribute totalSize is Null Falg */
  private boolean totalSizeNull = false;

  /**
   * Get totalSize
   *
   * @return long
   */
  public final long getTotalSize() {

    return totalSize;
  }

  /**
   * Set totalSize
   *
   * @param long
   */
  public final void setTotalSize(long totalSize) {

    this.totalSize = totalSize;

    this.totalSizeSetted = true;

    this.setTotalSizeNull(false);
  }

  /**
   * Get totalSize Has Been Setted
   *
   * @return boolean
   */
  public final boolean isTotalSizeSetted() {
    return this.totalSizeSetted;
  }

  /** Set totalSize Null */
  public final void setTotalSizeNull() {

    this.totalSizeNull = true;
  }

  public final void setTotalSizeNull(boolean aNullFlag) {

    this.totalSizeNull = aNullFlag;
  }

  public final boolean isTotalSizeNull() {

    return this.totalSizeNull;
  }

  private String workspaceName;

  /** Attribute workspaceName Be Seted Falg */
  private boolean workspaceNameSetted = false;

  /** Attribute workspaceName is Null Falg */
  private boolean workspaceNameNull = false;

  /**
   * Get workspaceName
   *
   * @return String
   */
  public final String getWorkspaceName() {

    if (isWorkspaceNameNull()) {
      return null;
    } else {
      return StringUtils.trim(workspaceName);
    }
  }

  /**
   * Set workspaceName
   *
   * @param String
   */
  public final void setWorkspaceName(String workspaceName) {

    this.workspaceName = StringUtils.trim(workspaceName);

    this.workspaceNameSetted = true;

    this.setWorkspaceNameNull(this.workspaceName == null);
  }

  /**
   * Get workspaceName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspaceNameSetted() {
    return this.workspaceNameSetted;
  }

  /** Set workspaceName Null */
  public final void setWorkspaceNameNull() {

    this.workspaceNameNull = true;
  }

  public final void setWorkspaceNameNull(boolean aNullFlag) {

    this.workspaceNameNull = aNullFlag;
  }

  public final boolean isWorkspaceNameNull() {

    return this.workspaceNameNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof WorkspaceScmLog) == false) {
      return false;
    }
    WorkspaceScmLog other = (WorkspaceScmLog) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("totalLines=");
    buffer.append(this.totalLines);

    buffer.append("totalSize=");
    buffer.append(this.totalSize);

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("parentId=");
    buffer.append(this.parentId);

    buffer.append("workspaceId=");
    buffer.append(this.workspaceId);

    buffer.append("workspaceScmConfigId=");
    buffer.append(this.workspaceScmConfigId);

    buffer.append("revision=");
    buffer.append(this.revision);

    buffer.append("author=");
    buffer.append(this.author);

    buffer.append("revisionTime=");
    buffer.append(this.revisionTime);

    buffer.append("comment=");
    buffer.append(this.comment);

    buffer.append("status=");
    buffer.append(this.status);

    buffer.append("remarks=");
    buffer.append(this.remarks);

    buffer.append("workspaceName=");
    buffer.append(this.workspaceName);

    buffer.append("]");

    return buffer.toString();
  }
}
